﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoPartsSearch.Domain.Entities;

namespace AutoPartsSearch.Domain.Abstract.Repositories
{
    public interface ISellerSearchQueryRepository : IBaseRepository<SellerSearchQuery>
    {
        void Process(SellerSearchQuery sellerSearchQuery);
        void Delete(int queryId, int sellerId);
        void MarkAsProcessed(int queryId, int sellerId);
        IEnumerable<SellerSearchQuery> GetBySeller(int sellerId, int page, int pageSize, out int totalCount, bool? processed = null);
        SellerSearchQuery GetBySearchQueryAndSeller(int queryId, int sellerId);
        int GetTotalCount(int sellerId, bool? processed = null);

        bool HasNewRequests(string userName);
    }
}
